package com.mrtan.mapper;

import com.mrtan.bean.PermissionRoleMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
* @author Mr.Tan
* @description 针对表【permission_role_mapping(角色权限映射表)】的数据库操作Mapper
* @createDate 2023-12-04 11:12:04
* @Entity com.mrtan.bean.PermissionRoleMapping
*/
public interface PermissionRoleMappingMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(PermissionRoleMapping record);

    int insertSelective(PermissionRoleMapping record);

    PermissionRoleMapping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PermissionRoleMapping record);

    int updateByPrimaryKey(PermissionRoleMapping record);

    List<PermissionRoleMapping> selectAll();
    void deleteByRoleId(Integer roleId);
    void insertBatch(@Param("roleId") Integer roleId, @Param("permissionIds") Integer[] permissionIds);

}
